import request from '@/utils/request'
import qs from "qs";

//查询列表
export function globalvariable_Lsit(query) {
  return request({
    url: '/datascan/b/globalConfig/queryPageList',
    method: 'get',
    params: query
  })
}
//详情
export function globalvariable_query(query) {
  return request({
    url: '/datascan/b/globalConfig/query',
    method: 'get',
    params: query
  })
}
//删除
export function globalvariable_delete(data) {
  return request({
    url: '/datascan/b/globalConfig/delete',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    method: 'post',
    data: qs.stringify(data)
  })
}
//新增
export function globalvariable_add(data) {
  return request({
    url: '/datascan/b/globalConfig/add',
    method:'post',
    data: data
  })
}

//编辑
export function globalvariable_update(data) {
  return request({
    url: '/datascan/b/globalConfig/update',
    method:'post',
    data: data
  })
}
